:root {
  /*editor*/
  --themeColor: rgba(77, 120, 204, 1);
  --themeColor90: rgba(77, 120, 204, .9);
  --themeColor80: rgba(77, 120, 204, .8);
  --themeColor70: rgba(77, 120, 204, .7);
  --themeColor60: rgba(77, 120, 204, .6);
  --themeColor50: rgba(77, 120, 204, .5);
  --themeColor40: rgba(77, 120, 204, .4);
  --themeColor30: rgba(77, 120, 204, .3);
  --themeColor20: rgba(77, 120, 204, .2);
  --themeColor10: rgba(77, 120, 204, .1);
  --highlightThemeColor: #e2c08d;

  --highlightColor: #ffffff10;
  --selectionColor: #67769660;
  --editorColor: #9da5b4;
  --editorColor80: #9da5b4;
  --editorColor60: rgba(157, 165, 180, .6);
  --editorColor50: rgba(157, 165, 180, .5);
  --editorColor40: rgba(157, 165, 180, .4);
  --editorColor30: rgba(157, 165, 180, .3);
  --editorColor10: rgba(157, 165, 180, .1);
  --editorColor04: rgba(157, 165, 180, .04);
  --editorBgColor: #282c34;
  --deleteColor: #ff6969;
  --iconColor: rgba(255, 255, 255, .56);
  --codeBgColor: #3a3f4b;
  --codeBlockBgColor: #3a3f4b;
  --footnoteBgColor: rgba(66, 67, 68, .5);
  --inputBgColor: rgba(0, 0, 0, .1);
  --focusColor: #568af2;

  --buttonFontColor: #9da5b4;
  --buttonBgColor: linear-gradient(#3a3f4b, #353b45);
  --buttonBorder: 1px solid #181a1f;
  --buttonShadow: none;
  --buttonFontColorHover: #d7dae0;
  --buttonBgColorHover: linear-gradient(#3e4451, #3a3f4b);
  --buttonBorderHover: var(--buttonBorder);
  --buttonFontColorActive: var(--buttonFontColor);
  --buttonBgColorActive: #2c313a;
  --buttonBorderActive: var(--buttonBorder);
  --buttonFocusBorder: 1px solid #568af2;

  --buttonPrimaryFontColor: #ffffff;
  --buttonPrimaryBgColor: linear-gradient(#557ecf, #4d78cc);
  --buttonPrimaryBorder: 1px solid #181a1f;;
  --buttonPrimaryShadow: none;
  --buttonPrimaryFontColorHover: var(--buttonPrimaryFontColor);
  --buttonPrimaryBgColorHover: linear-gradient(#6187d2, #5981d0);
  --buttonPrimaryBorderHover: var(--buttonPrimaryBorder);
  --buttonPrimaryFontColorActive: var(--buttonPrimaryFontColor);
  --buttonPrimaryBgColorActive: #3d6bc8;
  --buttonPrimaryBorderActive: var(--buttonPrimaryBorder);
  --buttonPrimaryFocusBorder: none;
  --buttonPrimaryFocusShadow: inset 0 0 0 1px rgba(24, 26, 31, 0.5), 0 0 0 1px #568af2;
  --tableBorderColor: #363839;

  /*marktext*/
  --sideBarColor: #9da5b4;
  --sideBarIconColor: var(--iconColor);
  --sideBarTitleColor: #9da5b4;
  --sideBarTextColor: #9da5b4;
  --sideBarBgColor: #21252b;
  --sideBarItemHoverBgColor: #3a3f4b;
  --itemBgColor: #21252b;

  --floatFontColor: #9da5b4;
  --floatBgColor: #21252b;
  --floatHoverColor: #3a3f4b;
  --floatBorderColor: #181a1f;
  --floatShadow: rgba(0, 0, 0, 0.3);
  --maskColor: rgba(0, 0, 0, .7);
  --editorAreaWidth: 750px;
}

::-webkit-scrollbar,
::-webkit-scrollbar-corner {
  background: var(--editorBgColor);
}
::-webkit-scrollbar:vertical {
  width: 10px;
}
::-webkit-scrollbar:vertical:hover {
  width: 12px;
}
::-webkit-scrollbar-thumb {
  background: #414956;
}
::-webkit-scrollbar-thumb:hover {
  background: #4b5362;
}

/* --- Element UI ------------------------------------------------ */

.v-modal {
  background: #08090a !important;
  opacity: 0.65 !important;
}
.el-dialog,
.el-dialog.ag-dialog-table {
  border-radius: 6px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.3) !important;
  border: 1px solid #181a1f !important;
  background: #252830 !important;
}

.el-button:focus {
  color: var(--buttonFontColor);
}
.el-button--primary:focus {
  color: var(--buttonPrimaryFontColor);
  background: var(--buttonPrimaryBgColor);
}

/* --- Core elements --------------------------------------------- */

.ag-front-menu .submenu,
.ag-float-wrapper {
  box-shadow: 0 4px 8px 0 var(--floatShadow) !important;
}

.title-bar .frameless-titlebar-button > div > svg {
  fill: #ffffff;
}
.title-bar .frameless-titlebar-minimize:hover,
.title-bar .frameless-titlebar-toggle:hover {
  background-color: rgba(215, 218, 224, 0.05) !important;
}

.input-wrapper {
  border-radius: 3px !important;
  border: 1px solid #181a1f !important;
  background: #1b1d23 !important;
}

.aidou .search-wrapper {
  box-shadow: none;
}

/* --- UI elements ----------------------------------------------- */

.side-bar {
  border-right: 1px solid #181a1f !important;
}
.left-column ul > li > svg {
  fill: rgba(215, 218, 224, 0.6) !important;
}
.left-column ul > li:hover > svg {
  fill: #d7dae0 !important;
}
.left-column ul > li:hover > svg {
  fill: #d7dae0 !important;
}
.left-column ul > li.active > svg {
  fill: #4d78cc !important;
}

.open-project button.button-primary,
.recent-files-projects button.button-primary {
  box-shadow: none;
}

.editor-tabs {
  box-shadow: none !important;
}
.editor-tabs:after {
  position: absolute;
  content: '';
  border-bottom: 1px solid #181a1f;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}
.editor-tabs ul.tabs-container:after {
  position: absolute;
  content: '';
  border-bottom: 1px solid #181a1f;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.tabs-container > li,
.tabs-container > li.active {
  background: var(--editorBgColor) !important;
}
.tabs-container > li.active {
  border: 1px solid #181a1f;
  border-bottom: none;
}
.tabs-container > li.active:after {
  top: 0 !important;
  right: auto !important;
  width: 2px !important;
  height: auto !important;
  background: #4d78cc !important;
}
.tabs-container svg.close-icon #unsaved-circle-icon {
  fill: #4d78cc;
}

/* --- Editor ---------------------------------------------------- */

blockquote::before {
  background: var(--highlightThemeColor);
}

:not(pre) > code[class*="language-"],
pre:not(.CodeMirror-line),
pre[class*="language-"],
pre.ag-paragraph {
  background: var(--codeBlockBgColor) !important;
  border: none !important;
}

p:not(.ag-active)[data-role="hr"]::before {
  border-top: 2px dashed #4b5362 !important;
  background: none !important;
}

li.ag-task-list-item {
  list-style-type: none;
  position: relative;
}
li.ag-task-list-item > input[type=checkbox] {
  position: absolute;
  cursor: pointer;
  width: 16px;
  height: 16px;
  top: .1em;
  transform: rotate(-90deg);
  margin: 0;
  left: -24px;
  transform-origin: center;
  transition: all .2s ease;
}
li.ag-task-list-item > input.ag-checkbox-checked {
  transform: rotate(0);
  opacity: .6;
}
li.ag-task-list-item > input[type=checkbox]::before {
  content: '';
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  display: inline-block;
  border: 2px solid var(--editorColor);
  border-radius: 2px;
  background-color: var(--editorBgColor);
  position: absolute;
  top: 0;
  left: 0;
  transition: all .2s ease;
}
li.ag-task-list-item > input.ag-checkbox-checked::before {
  border: transparent;
  background-color: var(--editorColor);
}
li.ag-task-list-item > input::after {
  content: '';
  transform: rotate(-45deg) scale(0);
  width: 9px;
  height: 5px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  position: absolute;
  display: inline-block;
  top: 1px;
  left: 5px;
  transition: all .2s ease;
}
li.ag-task-list-item > input.ag-checkbox-checked::after {
  transform: rotate(-45deg) scale(1);
}
figure.ag-active.ag-container-block > div.ag-container-preview {
  box-shadow: 0 3px 8px 0 var(--floatShadow) !important;
}

/* ------------------------------------ */

/*
 * Prism.js theme (override light theme)
 */

/* @import url("prismjs/one-dark.theme.css"); */
